package com.ruoyi.factory.apilog.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName ApiLog
 * @Description: TODO
 * @Author LiuJiaji
 * @Date 2023/9/15 16:01
 **/
public class ApiLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志表自增id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 唯一标识 */
    @Excel(name = "唯一标识")
    private String requestId;

    /** 请求描述 */
    @Excel(name = "请求描述")
    private String apiName;

    /** 调用接口地址 */
    @Excel(name = "调用接口地址")
    private String apiUrl;

    /** 请求参数 */
    @Excel(name = "请求参数")
    private String inputParam;

    /** 输出参数 */
    @Excel(name = "输出参数")
    private String outParam;

    /** $column.columnComment */
    @Excel(name = "输出参数")
    private String payInputParam;

    /** $column.columnComment */
    @Excel(name = "输出参数")
    private String payOutParam;

    /** 接口输出参数异常 */
    @Excel(name = "接口输出参数异常")
    private String errorMsg;

    /** 备用字段 */
    @Excel(name = "备用字段")
    private String attr;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setRequestId(String requestId)
    {
        this.requestId = requestId;
    }

    public String getRequestId()
    {
        return requestId;
    }
    public void setApiName(String apiName)
    {
        this.apiName = apiName;
    }

    public String getApiName()
    {
        return apiName;
    }
    public void setApiUrl(String apiUrl)
    {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl()
    {
        return apiUrl;
    }
    public void setInputParam(String inputParam)
    {
        this.inputParam = inputParam;
    }

    public String getInputParam()
    {
        return inputParam;
    }
    public void setOutParam(String outParam)
    {
        this.outParam = outParam;
    }

    public String getOutParam()
    {
        return outParam;
    }
    public void setPayInputParam(String payInputParam)
    {
        this.payInputParam = payInputParam;
    }

    public String getPayInputParam()
    {
        return payInputParam;
    }
    public void setPayOutParam(String payOutParam)
    {
        this.payOutParam = payOutParam;
    }

    public String getPayOutParam()
    {
        return payOutParam;
    }
    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg()
    {
        return errorMsg;
    }
    public void setAttr(String attr)
    {
        this.attr = attr;
    }

    public String getAttr()
    {
        return attr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderNo", getOrderNo())
                .append("requestId", getRequestId())
                .append("apiName", getApiName())
                .append("apiUrl", getApiUrl())
                .append("inputParam", getInputParam())
                .append("outParam", getOutParam())
                .append("payInputParam", getPayInputParam())
                .append("payOutParam", getPayOutParam())
                .append("errorMsg", getErrorMsg())
                .append("attr", getAttr())
                .append("createTime", getCreateTime())
                .toString();
    }
}
